<script setup lang="ts">
defineProps<{
  msg: string
}>()
import variables from "@/styles/variables.module.scss";
import { useCounterStore } from "@/stores/counter";
const counterStore = useCounterStore();
</script>

<template>
  <div class="box" />
  <div style="width: 300px;height: 100px" :style="{ 'background-color': variables.bgColor }"></div>
  <div class="greetings">
    <h1 class="green text-blue">{{ msg }}11111111111111</h1>
    <div>
      <el-button type="success"><i-ep-SuccessFilled />Success</el-button>
      <el-button type="info"><i-ep-InfoFilled />Info</el-button>
      <el-button type="warning"><i-ep-WarningFilled />Warning</el-button>
      <el-button type="danger"><i-ep-WarnTriangleFilled />Danger</el-button>
    </div>
    <el-card class="text-left text-white border-white border-1 border-solid mt-10 bg-[#242424]">
      <template #header> 子组件 HelloWorld.vue</template>
      <el-form>
        <el-form-item label="数字："> {{ counterStore.count }}</el-form-item>
        <el-form-item label="加倍："> {{ counterStore.double }}</el-form-item>
      </el-form>
    </el-card>
  </div>
</template>

<style lang="scss" oped>
h1 {
  font-weight: 500;
  font-size: 2.6rem;
  position: relative;
  top: -10px;
}

.box {
  width: 100px;
  height: 100px;
  background-color: $bg-color;
}

h3 {
  font-size: 1.2rem;
}

.greetings h1,
.greetings h3 {
  text-align: center;
}

@media (min-width: 1024px) {

  .greetings h1,
  .greetings h3 {
    text-align: left;
  }
}
</style>
